package com.domor.common.core.domain;

/**
 * <h3>状态码枚举类</h3>
 *
 * @auther: liyuyang
 * @date: 2020/8/1
 **/
public enum CodeEnum {

    SUCCESS(200, "操作成功"),
    WARN(301, "警告"),
    TIMEOUT(401, "超时，无权限"),
    ERROR(500, "错误");

    private Integer Code;
    private String Msg;

    CodeEnum(Integer Code, String Msg) {
        this.Code = Code;
        this.Msg = Msg;
    }

    public Integer getCode() {
        return Code;
    }

    public String getMsg() {
        return Msg;
    }

}
